
export function getUrlParams(urls, name) {
    let reg = new RegExp('(?:^|\\?|\\&)'+ name +'=([^&]*)(?:\\&|$)', 'i'),
        rets = urls.match( reg );
    return rets && rets[1] ? decodeURIComponent( rets[1] ) : null;
}
